package Demo2;

class Base {
    Base() {
        System.out.print("Base");
    }
}
public class Test2 extends Base{
    public static void main( String[] args ) {
        new Test2();//1
        //调用父类无参的构造方法
        new Base();//2
    }
}
